<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-sclae=1.0,user-scalable=0">
	<link rel="stylesheet" type="text/css" href="css/base.css">
	<title>xuluo</title>
	<style type="text/css">
		li{border-bottom: 1px solid #ccc;text-align: center;padding: 10px 0;margin: 2px auto;}
	</style>
	<script type="text/javascript">
		;(function () {
		    var src = 'js/eruda.min.js';
		    //if (!/eruda=true/.test(window.location))return;
		    document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
		    document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');
		})();
	</script>
</head>
<body>
	<ul>
		<li onclick="window.location=location.href+'?eruda=true'">点击打开移动端调试面板</li>
		<li>在地址栏加上?eruda=true</li>
		<li>可以在手机上看到console.log打印内容</li>
		<li>可以查看元素</li>
		<li>查看资源、network等</li>
	</ul>
	<!-- <script type="text/javascript" src="js/eruda.min.js"></script> -->
	<script type="text/javascript">
		/*var el = document.createElement('div');
		document.body.appendChild(el);
		eruda.init({
		    container: el,
		    tool: ['console', 'elements']
		});*/
		console.log('这是console出来的内容');
		var test="这是js里定义的变量";
	</script>
</body>
</html>